<extend name="common:base" />
<block name="content">
	<div id="header">
		<div class="header">
			<h1 class="tit">{$site_title}</h1>
			<!--<p class="goback">-->
				<!--<a class="return" href="{:U('Recharge/rechargecenter')}">返回</a>-->
			<!--</p>-->
			<!--<p class="more"><a class="share" href=""></a></p>-->
		</div>
	</div>
		<link rel="stylesheet" href="{:C('__STATIC__')}{$theme}/Static/{:C('css')}/xfjl.css" />
		<div class="banx-a">
			<div class="one">
				<!--<div class="one-one">-->
				<!--<select name="select" id="select_k1" class="xla_k">-->
				    <!--<option value="本周">本周</option>-->
					<!--<option value="本周2">本周2</option>-->
					<!--<option value="本周3">本周3</option>-->
				<!--</select>-->
				<!--</div>-->
				<div class="ss">
					<!--<img src="{:C('__STATIC__')}{$theme}/Static/img/sel.jpg">-->
					<form class="Huiform" method="get" action="" >
					    <input type="text" placeholder="金额数量，例如：233" value="{$_GET['rechargeinfo']}" class="input-text"  name="rechargeinfo"/>
						<input type="hidden" name="m" value="home"/>
						<input type="hidden" name="c" value="recharge"/>
						<input type="hidden" name="a" value="rechargerecord"/>
						<button class="tj" type="submit"></button>
					</form>
				</div>
			</div>
		    <div class="two">
		    	<ul class="gone">
					<notempty name="rechargerecord">
					<volist name="rechargerecord" id="rechargerecord" >
		    		<li>

						<div class="lip">
							<if condition="$rechargerecord['audit_status'] eq 0">
								<span class="lip-first">审核中</span>
								<elseif condition="$rechargerecord['audit_status'] eq 1"/>
								<span class="lip-first">审核通过</span>
								<else/>
								<a class="lip-first">审核未通过</a>
							</if>
							    <span class="lip-second">{$rechargerecord['record_time']|date="Y-m-d H:i:s",###}</span>

		    			</div>
		    			<div class="lipb">
							<!--<a>金额：{$rechargerecord['b_name']}元</a>-->
							<span style="height:1.19rem;line-height:1.19rem;font-size:0.3rem;color:#64ca98;">{$rechargerecord['amount']}元</span>
		    		    </div>
		    		</li>
					</volist>
						<else/>
						<div class="no_data">
							<img src="{:C('__STATIC__')}{$theme}/Static/img/no_data.png" class="tip_img"/>
							<p class="tip_txt">暂时没有相关信息</p>
						</div>
					</notempty>
		    	</ul>
		    </div>
		</div>
	<div class="dropload-load" id="loading" style="display: none;"><span class="loading"></span>加载中...</div>
</block>
<block name="JS">
	<script type="text/javascript">
//        $(".tj").click(function () {
//            var msg = $(".input-text").val();
//            if(!msg){
//                layer.msg("请填写搜索条件");
//                return false;
//            }
//        });

        /**
         * 继续加载猜您喜欢
         * */
        var before_request = 1; // 上一次请求是否已经有返回来, 有才可以进行下一次请求
        var page = 1;

        function ajax_sourch_submit() {
            if (before_request == 0)// 上一次请求没回来 不进行下一次请求
                return false;
            before_request = 0;
            page++;
            $.ajax({
                url: "{:U('Recharge/morerecharge')}",
                type: "post",
                data: {
                    params : "{$params}",
                    page: page
                },

                success: function (msg) {
                    $('#loading').show();
                    if (msg != 1) {
                        $('.gone').append(msg);
                        before_request = 1;
                    } else {
                        $('#loading').text('没有更多的数据！');
                    }
                }
            });
        }

	</script>
</block>
